WooCommerce\Square\Gateway\API A

Total Complexity 59
Dependencies 31
Dependents 4
Total lines 824
Lines of code 252
Logical lines of code 156
Comment lines 365
Methods 41
Properties 3

Methods 41

Method Rating Maintainability Complexity Lines of code
tokenize_payment_method()
S
57 4 17
refund()
S
61 4 11
capture_payment()
S
61 4 11
void()
S
61 4 11
adjust_order()
S
58 3 14
create_order()
S
62 2 10
do_post_parse_response_validation()
S
71 2 6
get_transaction()
S
64 2 9
get_api_id()
S
79 2 3
get_location_id()
S
82 1 3
get_order()
S
82 1 3
activate_gift_card()
S
68 1 6
supports_update_tokenized_payment_method()
S
82 1 3
supports_get_tokenized_payment_methods()
S
82 1 3
check_debit()
S
98 1 1
update_tokenized_payment_method()
S
98 1 1
retrieve_gift_card_by_gan()
S
69 1 6
retrieve_gift_card()
S
69 1 6
cancel_payment()
S
69 1 6
get_payment()
S
69 1 6
refund_gift_card()
S
68 1 6
load_gift_card()
S
68 1 6
supports_remove_tokenized_payment_method()
S
82 1 3
__construct()
S
75 1 4
create_gift_card()
S
69 1 6
create_customer()
S
69 1 6
credit_card_charge()
S
69 1 6
credit_card_capture()
S
80 1 3
gift_card_charge()
S
69 1 6
cash_app_pay_authorization()
S
79 1 3
cash_app_pay_charge()
S
68 1 6
create_customer_card()
S
69 1 6
get_tokenized_payment_methods()
S
69 1 6
pay_order()
S
68 1 6
remove_tokenized_payment_method()
S
70 1 6
retrieve_order()
S
67 1 7
calculate_order()
S
67 1 7
update_order()
S
67 1 7
update_payment()
S
67 1 7
credit_card_authorization()
S
69 1 6
set_api_id()
S
81 1 3